import request from '@/utils/request'

// 查询我的任务列表
export function listMinestacks(query) {
  return request({
    url: '/hurtless/minestacks/list',
    method: 'get',
    params: query
  })
}

// 确认我的任务
export function determineMinestacks(ids) {
  return request({
    url: `/hurtless/minestacks/${ids}`,
    method: 'put'
  })
}

// 提交我的任务
export function submitMinestacks(id,fileId) {
  return request({
    url: `/hurtless/minestacks/submit/${id}/${fileId}`,
    method: 'put'
  })
}

/** 修改任务表的文件id为null*/
export function updataFileId(fileId){
  return request({
    url: '/hurtless/minestacks/file/' + fileId,
    method: 'put'
  })
}
